package com.tanhua.dubbo.api;

import com.tanhua.model.enums.CommentType;
import com.tanhua.model.mongo.Comment;
import com.tanhua.model.vo.PageResult;

import java.util.List;

/**
 * @author wjs
 * @version 1.0
 * @date 2021/12/28 0028 下午 2:42
 */
public interface CommentApi {
    List<Comment> findPageComments(String movementId, CommentType comment, Integer page, Integer pagesize);

    Integer save(Comment comment);

    Boolean hasComment(String movementId, Long userId, CommentType like);

    Integer delete(Comment comment);

    PageResult messagesPageByType(Integer page, Integer pagesize, int type, Long userId);

    Long countByMoventId(String valueOf, CommentType comment);

    Comment findById(String commentId);

    void updateById(Comment comment);
}
